package futbol.tacticas.concursantes.laponiafc;

import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Galderic Punti
 * 
 * @date 06-06-2008
 * 
 */
public final class ResultadoIntercepcion {

	enum GOL {
		NA, AFAVOR, CONTRARIO
	};

	private List<Jugador> players = new ArrayList<Jugador>();

	private int turn;
	private Point2D.Double point = new Point2D.Double();

	public int enemyIntercepts;
	public int ownIntercepts;

	public GOL gol = GOL.NA;

	public final void clear() {
		players.clear();
		turn = 0;
		enemyIntercepts = 0;
		ownIntercepts = 0;
		gol = GOL.NA;
	}

	public final int getTurn() {
		return turn;
	}

	public final void setTurn(int t) {
		this.turn = t;
	}

	public final Point2D.Double getPoint() {
		return point;
	}

	public final void addPlayer(Jugador p) {
		players.add(p);
	}

	public final boolean isEmpty() {
		return players.isEmpty();
	}

	protected final List<Jugador> getPlayers() {
		return players;
	}
}